<?php
/**
 * @author yuanyitian
 * @date 2023/6/5 21:38
 */

namespace utils;

require_once $_SERVER["DOCUMENT_ROOT"]."/global/function.php";
class redis
{
    public static function con(){
        $redis =new \Redis();
        $redis->connect($GLOBALS["redis_host"], $GLOBALS["redis_port"]);
      //  $redis->del();
        return $redis;
    }

}